<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<ui:composition>
   <p:dialog id="modalDialog" visible="true" resizable="false" styleClass="modalPanelAlert"
      rendered="#{UserSession.hataVarmi}" header="Hata Ekranı" widgetVar="dlg" modal="true">
      <div class="popAlertArea">
         <div class="popAlertCont">
            <div class="popAlertTxtArea">
               <div class="popAlertTxt">
                  <p:messages id="messages" style="margin:0;" />
               </div>
            </div>

         </div>
      </div>
   </p:dialog>

   <script>
  /* <![CDATA[ */
   function isMessagesExist()
   {
      if(jQuery('#bodyForm\\:messages').css('display') != "none")
      {
         if(jQuery("#bodyForm\\:messages").html()!= null)
         {
            if(jQuery("#bodyForm\\:messages").html()!= "")
            {
               return true;
            }
         }
      }
      return false;
   }
  	/* ]]> */
   </script>

</ui:composition>
</html>